﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.Record;


namespace TyMES.ViewModel.Record.RepairRecordVMs
{
    public partial class RepairRecordTemplateVM : BaseTemplateVM
    {
        [Display(Name = "产线号")]
        public ExcelPropety LineCode_Excel = ExcelPropety.CreateProperty<RepairRecord>(x => x.LineCode);
        [Display(Name = "返修工序号")]
        public ExcelPropety OperationCode_Excel = ExcelPropety.CreateProperty<RepairRecord>(x => x.OperationCode);
        [Display(Name = "返修工序名称")]
        public ExcelPropety OperationName_Excel = ExcelPropety.CreateProperty<RepairRecord>(x => x.OperationName);
        [Display(Name = "返修前SN")]
        public ExcelPropety OldSN_Excel = ExcelPropety.CreateProperty<RepairRecord>(x => x.OldSN);
        [Display(Name = "新SN")]
        public ExcelPropety CurrentSN_Excel = ExcelPropety.CreateProperty<RepairRecord>(x => x.CurrentSN);
        [Display(Name = "电机号")]
        public ExcelPropety TZMaterialCode_Excel = ExcelPropety.CreateProperty<RepairRecord>(x => x.TZMaterialCode);
        [Display(Name = "返修状态码")]
        public ExcelPropety RepairStatus_Excel = ExcelPropety.CreateProperty<RepairRecord>(x => x.RepairStatus);
        [Display(Name = "返修信息描述")]
        public ExcelPropety Description_Excel = ExcelPropety.CreateProperty<RepairRecord>(x => x.Description);
        [Display(Name = "返修时间")]
        public ExcelPropety uploadTime_Excel = ExcelPropety.CreateProperty<RepairRecord>(x => x.uploadTime);
        [Display(Name = "上传状态")]
        public ExcelPropety uploadFlag_Excel = ExcelPropety.CreateProperty<RepairRecord>(x => x.uploadFlag);
        [Display(Name = "预留域1")]
        public ExcelPropety Filed1_Excel = ExcelPropety.CreateProperty<RepairRecord>(x => x.Filed1);
        [Display(Name = "预留域2")]
        public ExcelPropety Filed2_Excel = ExcelPropety.CreateProperty<RepairRecord>(x => x.Filed2);

	    protected override void InitVM()
        {
        }

    }

    public class RepairRecordImportVM : BaseImportVM<RepairRecordTemplateVM, RepairRecord>
    {

    }

}
